package com.test.component;

import com.test.model.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @Author：徐志荣
 * @Date：2023/6/7 下午 5:34
 */
@Component
public class StudentBeans {

    /*
    * 把这种方式忘记
    * */
  /*  @Bean
    public Student reBack(){
        Student student = new Student();
        student.setAge(18);
        student.setId(1);
        student.setName("Lucy");
        return student;
    }*/
}
